<?php $this->pageTitle=Yii::app()->name; ?>

<!--- <h1>Welcome to <i><?php echo CHtml::encode(Yii::app()->name); ?></i></h1> -->

<br>
<?php

// http://www.yiiframework.com/extension/slider
// http://www.yiiframework.com/extension/orbitslider

 $this->widget('bootstrap.widgets.TbCarousel', array(
    'items'=>array(
        array('image'=>'http://placehold.it/770x400&text=First+thumbnail', 'label'=>'First Thumbnail label', 'url'=>'33333', 'caption'=>'Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.'),
        array('image'=>'http://placehold.it/770x400&text=Second+thumbnail', 'label'=>'Second Thumbnail label', 'caption'=>'Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.'),
        array('image'=>'http://placehold.it/770x400&text=Third+thumbnail', 'label'=>'Third Thumbnail label', 'caption'=>'Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.'),
    ),
)); 
?>


<?php 

// $path =Yii::app()->baseUrl.'/images/banners/';
// $this->widget('ext.OrbitSlider.OrbitSlider',

// array(
// 'content'=>array(
// array(
// 'image'=>true, 'file'=>'http://placehold.it/770x400&text=First+thumbnail', 'url'=>'#', 'style'=>'background-color:white;', 'caption'=>'background-color:white; prevents bleed through from slides beneath',
// ), array(

// 'image'=>false, 'content'=>'<strong>Anything is Possible</strong><br />Just fill this space', 'style'=>'background-color:#999999;', 'caption'=>'Custom HTML content',
// ), array(

// 'image'=>true, 'file'=>$path.'banner-2.jpg', 'url'=>'#', 'style'=>'background-color:white;', 'caption'=>'Optional Caption',
// ), array(

// 'image'=>true, 'file'=>$path.'banner-3.jpg', 'style'=>'background-color:white;',
// ), array(

// 'image'=>false, 'style'=>'background-color:#264d25;color:white;', 'content'=>'<strong>More Content</strong>', 'caption'=>'Optional caption text',
// ), array(

// 'image'=>true, 'file'=>$path.'banner-4.jpg', 'url'=>'#', 'style'=>'background-color:white;', 'caption'=>'What a pretty picture',
// ),
// ), 'slider_options'=>array(

// 'animation'=>'horizontal-slide', 'bullets'=>true, 'directionalNav'=>true, 'advanceSpeed'=>'8000',
// ), 'width'=>'400', 'height'=>'250',
// )
// ); 
	
	$dataProvider = new CActiveDataProvider('Contents', array(
        'pagination'=>array(
                'pageSize'=>10,
        ),
	));

	$this->widget('zii.widgets.CListView', array(
	'dataProvider'=>$dataProvider,
	'itemView'=>'_view',
    'summaryText' => '',
	)); 

?>
